From 2d5cba63646f59fba67d1ede3e4b113d2664f6a7 Mon Sep 17 00:00:00 2001 From: Dovecot Maintainers Date: Wed, 2 Sep 2026 12:17:57 -0400 Subject: [PATCH] bit-test-array-fixes =================================================================== Gbp-Pq: Name 32-bit-test-array-fixes.patch --- src/lib/test-array.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/test-array.c b/src/lib/test-array.c index d6bebba..2cf90de 100644 --- a/src/lib/test-array.c +++ b/src/lib/test-array.c @@ -461,7 +461,14 @@ enum fatal_test_state fatal_array(unsigned int stage) t_array_init(&arr, 2); array_push_back(&arr, value); + /* this test triggers different failures on 32- versus + * 64-bit architectures. It's a failure in both cases, + * so we just handle it... */ +#if SIZEOF_VOID_P == 4 + test_expect_fatal_string("memory allocation overflow"); +#else test_expect_fatal_string("Buffer write out of range"); +#endif /* this is supposed to assert-crash before it even attempts to access value */ array_append(&arr, value, UINT_MAX); -- 2.30.2